<?php

namespace Boosen\Admin\Menus;

use Illuminate\Support\ServiceProvider;

class MenusServiceProvider extends ServiceProvider
{
    /**
     * {@inheritdoc}
     */
    public function boot()
    {
    	$this->publishes([
	        __DIR__.'/../config/menus.php' => config_path('Boosen' .DIRECTORY_SEPARATOR . 'menus.php'),
	    ]);

        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
        // $this->loadViewsFrom(__DIR__.'/../resources/views', 'boosen-menus');
        $this->loadHelpers();
        Menus::boot();
    }

    public function loadHelpers()
    {
        require_once __DIR__.'/helpers.php';
    }
}
